package ch07.shiLi.dao.sysUser;

import ch07.shiLi.pojo.SysUser;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("sysUserService")
public class SysUserMapperImpl extends SqlSessionDaoSupport {
        @Autowired
        private SysUserMapper sysUserMapper;

        /*private SqlSessionTemplate sqlSession;*/
        public List<SysUser> selectSysUserList(SysUser sysUser) {
            return sysUserMapper.selectSysUserList(sysUser);
        }

//        @Override
        public int add(SysUser sysUser) {
            return sysUserMapper.add(sysUser);
        }
/*
    public SqlSessionTemplate getSqlSession() {
        return sqlSession;
    }

    public void setSqlSession(SqlSessionTemplate sqlSession) {
        this.sqlSession = sqlSession;
    }*/

}
